/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import request from '@/framework-core/axios';
import website from '@/framework-core/config/website';




/**
 * 分页查询
 * @param path
 * @param query 查询条件
 */
export function queryApp(query) {

  return request({
    url: website.baseUrl+'/api/form/queryApp/loadQ',
    method: 'post',
    params: query
  })
}


export function saveApp(data,params) {
  return request({
    url: website.baseUrl+'/api/form/queryApp/saveQ',
    method: 'post',
    data: data,
    params: params
  })
}


/**
 * 分页查询
 * @param path
 * @param query 查询条件
 */
export function queryByApp(params) {

  return request({
    url: website.baseUrl+'/api/form/queryApp/queryByApp',
    method: 'post',
    params: params
  })
}



export function createTestDataByApp(app,num) {

  return request({
    url: website.baseUrl+'/api/form/tableData/createTestDataByApp?app='+app+"&num="+num,
    method: 'get'
  })
}



export function createTestDataByForm(formId,num) {

    return request({
        url: website.baseUrl+'/api/form/tableData/createTestDataByForm?formId='+formId+"&num="+num,
        method: 'get'
    })
}




